<div id="products_detail" class="span-17">

<div id="product_gal">
  <?php
    $this->widget('application.extensions.adGallery.AdGalleryWidget',array(
      'imgList'=>$galleriesList,
    ));
  ?>
</div>

<div id="product_desc">
 <h1><?php echo $model->name;?></h1>
  <p><?php echo $model->description;?></p>
</div>

<!-- Form -->
<div id="orders_detail" class="span-24">
<h1><?php echo Yii::t('msg', 'Request Inquiry');?></h1>
<?php $form=$this->beginWidget('CActiveForm', array(
  'id'=>'contact-form',
  'enableClientValidation'=>true,
  'clientOptions'=>array(
    'validateOnSubmit'=>true,
  ),
)); ?>

<?php if(Yii::app()->user->hasFlash('order')){ ?>
	<div class="flash-success">
  	<?php echo Yii::app()->user->getFlash('order'); ?>
  </div>
<?php } ?>



  <?php echo $form->errorSummary($orderModel); ?>

  <div class="name">
    <?php echo $form->labelEx($orderModel,'name'); ?>
    <?php echo $form->textField($orderModel,'name'); ?>
    <?php echo $form->error($orderModel,'name'); ?>
  </div>

  <div class="row">
    <?php echo $form->labelEx($orderModel,'email'); ?>
    <?php echo $form->textField($orderModel,'email'); ?>
    <?php echo $form->error($orderModel,'email'); ?>
  </div>

  <div class="row">
    <?php echo $form->labelEx($orderModel,'tel'); ?>
    <?php echo $form->textField($orderModel,'tel'); ?>
    <?php echo $form->error($orderModel,'tel'); ?>
  </div> 


  <div class="row">
    <?php echo $form->labelEx($orderModel,'message'); ?>
    <?php echo $form->textArea($orderModel,'message',array('rows'=>6, 'cols'=>50)); ?>
    <?php echo $form->error($orderModel,'message'); ?>
  </div>
<br />
  <?php $this->widget('application.extensions.recaptcha.EReCaptcha', 
   array('model'=>$orderModel, 'attribute'=>'verifyCode',
         'theme'=>'white', 'language'=>'es_ES', 
         'publicKey'=>'6Ldm19cSAAAAADYyO1jjVADYirrgijQjBx02dLfu')) ?>
  <?php echo CHtml::error($model, 'verifyCode'); ?>

  <div class="row buttons">
    <?php echo CHtml::submitButton('Submit'); ?>
  </div>

<?php $this->endWidget(); ?>	
</div>
<div id="page_break"></div>
</div>

<!--Left Menu -->
<div id="products_menu" class="span-6 last">
<h2><?php echo Yii::t('msg', 'Our Products');?></h2>
	<?php 
		foreach($productCategoriesList as $model) {
	?>
			<h3><?php echo CHtml::link($model->name, array(Yii::app()->language.'/products/index/'. $model->slug));?></h3>
			<?php if ($model->subProductCategoriesCount>0) {
				foreach ($model->subProductCategories as $sub) {
			?>
			<li><?php echo CHtml::link($sub->name, array(Yii::app()->language.'/products/index/'. $sub->slug));?></li>
			<?php
				}
			}
		}
	?>	
</div>

